(ns clj-gallery.models.schema
  (:require [clj-gallery.models.db :refer :all]
            [clojure.java.jdbc :as sql]))

(defn create-users-table []
  (sql/execute! db
    (sql/create-table-ddl :users
      [[:id "varchar(32) primary key"]
       [:pass "varchar(100)"]])))

;(create-users-table)

(defn create-images-table []
  (sql/execute! db
    (sql/create-table-ddl :images
      [[:userid "varchar(32)"]
       [:name "varchar(100)"]])))